<?php $skillModel = new Skill_Categories_Model(); ?>
    <div class="chuyende_top">
      
      <div class="chuyende_content">
        
        <div class="content_title">
        
        	<div id="slider">
			<ul>
            <?php   
             
            foreach($data as $arr) {
                $arr = $skillModel->TrimInArray($arr);
                $urlMain = url($arr[0]->malias.'/chuyende/chitiet/'.$arr[0]->alias);
             ?>				
				<li>
					<h2> <a href="<?php echo $urlMain ?>"> <?php echo $arr[0]->title ?></a></h2>
                    <?php 
                    if (isset($arr[0]->image) && trim($arr[0]->image) != '') {
                     ?>
				    	<div class="img_"><a title="<?php echo $arr[0]->title ?>" href="<?php echo $urlMain ?>">
    <img title="<?php echo $arr[0]->title ?>" alt="<?php echo $arr[0]->title ?>"  width="200" height="195" src="<?php echo iUrlFile($arr[0]->image) ?>" /> </a></div>
                    <?php 
                    }
                     ?>
                	<div class="text_title slidetitle">
					   <?php 
           foreach ($arr as $row) {
                $url = url($row->malias.'/video/chitiet/'.$row->valias);
                       
                        ?>	
                    	<div class="block_txt">
                       	    <a href="<?php echo $url ?>" ><?php echo $row->vtitle ?> </a>
                        </div>
                        
                      <?php 
            } //viewmore
                       ?> 
                        
                        
                      <div class="block_txt vmr"><a title="Xem thêm" href="<?php echo $urlMain ?>"><img src="<?php echo root_url() ?>data/images/skill/xemthem.gif" width="73" height="22" border="0" title="<?php echo $row->vtitle ?>" alt="<?php echo $row->vtitle ?>" /></a></div> 
                	</div>
                </li>
        <?php 
            }
         ?>
			
				
			</ul>
		</div>
        </div>
      </div>
    </div>
<?php 
if (count($data) > 1) {
 ?>
    <script type="text/javascript" src="<?php echo root_url() ?>data/js/easySlider1.7.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){	
			$("#slider").easySlider({
				auto: true, 
				continuous: true
			});
		});	
	</script>    
<?php 
}
 ?>